﻿namespace imichaelmiers.wp7.security.cryptography.PasswordProtectedStorage
{
    using System;
    using System.Runtime.Serialization;

    /// <summary>
    /// Class used for storing data in the key value store. Public for 
    /// serialization purposes only. 
    /// System.Collections.Generic.KeyValuePair is not serializable.Hence this.
    /// </summary>
    [DataContract]
    public class KeyValuePair
    {
        /// <summary>
        ///  The key.
        /// </summary>
        [DataMember]
        public string Key;

        /// <summary>
        ///  They value.
        /// </summary>
        [DataMember]
        public object Value;
        public KeyValuePair(string key, object value)
        {
            this.Key = key;
            this.Value = value;
        }
    }
}
